package org.web.projectStandardPlatform.client.config.demoConfig;


import lombok.Getter;
import lombok.Setter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.validation.annotation.Validated;

import jakarta.validation.constraints.Min;


@Setter
@Getter
@Validated
@ConfigurationProperties(
        ignoreInvalidFields = true)
public class HelloWorldServerStarterConfig {

    @Value(value = "${org.web.helloWorld.helloWorldServer.strValue:str}")
    private String strValue;


    @Min(value = 10)
    @Value(value = "${org.web.helloWorld.helloWorldServer.intValue:0}")
    private int intValue;

    @Min(value = 10)
    @Value(value = "${org.web.helloWorld.helloWorldServer.intValue:0}")
    @org.hibernate.validator.constraints.NotBlank
    private Integer integerValue;
}
